  <div id="edition-songs-list">
	
    <table id="song-table">

      <tr id="song-table-header">
	    <th>Track</th>
		<th>Artists</th>
        <th>Name</th>
        <th>Length</th>
      </tr>
	  
      <% songs.each do |version| %>

        <tr class="song-table-version">
		  <td class="song-table-track"><%=h version.track %></td>
		  <td class="song-table-artist">
		    <% version.artists.each do |artist| %>
			  <%= link_to artist.name, artist %>
			  <%=h (artist == version.artists.last) ? "" : "," %>
			<% end %>
		  </td>
          <td class="song-table-title"><%= link_to version.title, version %></td>

          <td class="song-table-length">
            <%=h version.length/60 %>:<%=h (version.length%60 == 0)? "00" : version.length%60 %>
          </td>
		</tr>

        <tr>
          <td class="song-table-credit" colspan="3">
            <% version.song_credits.each do |credit| %>
              <div class="song-credit-item">
                <%=h credit.role %>
                <%=h (credit.details.blank?)? "" : " [" + credit.details + "]" %>
                by <strong><%= link_to credit.artist.name, credit.artist %></strong>
		      </div>
			<% end %>
          </td>
        </tr>

      <% end %>
    </table>
  </div>